package custom.base.utils.notification;

import android.content.Context;

import androidx.core.app.NotificationCompat;

import java.io.Serializable;

/**
 * Created by cubebox on 2018/5/15.
 */

public class NotificationBean implements Serializable {
    private static final long serialVersionUID = -8560314579656009813L;
    /**
     * Notification构造器
     */
    private NotificationCompat.Builder builder;
    private int NotificationID;

    public NotificationCompat.Builder getBuilder() {
        return builder;
    }

    public void setBuilder(NotificationCompat.Builder builder) {
        this.builder = builder;
    }

    public int getNotificationID() {
        return NotificationID;
    }

    public void setNotificationID(int notificationID) {
        NotificationID = notificationID;
    }

    public void nofify(Context context) {
        NotificationUtils.getInstance(context).notify(NotificationID);
    }

    @Override
    public String toString() {
        return "NotificationBean{" +
                "builder=" + builder +
                ", NotificationID=" + NotificationID +
                '}';
    }
}
